.class public Lcom/estrongs/android/ui/recycler/FileGroupAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "FileGroupAdapter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Landroidx/recyclerview/widget/RecyclerView$Adapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
            "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
            ">;"
        }
    .end annotation
.end field

.field private b:Landroidx/recyclerview/widget/GridLayoutManager;

.field private c:Landroid/content/Context;

.field private d:Lcom/estrongs/android/pop/app/analysis/n;


# direct methods
.method static synthetic a(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;)Lcom/estrongs/android/pop/app/analysis/n;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    return-object p0
.end method

.method private a()V
    .locals 2

    const/4 v0, 0x0

    .line 8
    iput-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->b:Landroidx/recyclerview/widget/GridLayoutManager;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/GridLayoutManager;->getSpanSizeLookup()Landroidx/recyclerview/widget/GridLayoutManager$SpanSizeLookup;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/recycler/GroupSpanSizeLoopup;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 10
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/recycler/GroupSpanSizeLoopup;->a(Z)V

    .line 11
    :cond_0
    invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemRemoved(I)V

    return-void
.end method

.method private a(Landroid/view/View;Lcom/estrongs/android/pop/app/analysis/n;)V
    .locals 2

    const v0, 0x7f090cd2

    .line 2
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0901a9

    .line 3
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v1, 0x7f0901ac

    .line 4
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 5
    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/analysis/n;->a()Ljava/lang/CharSequence;

    move-result-object p2

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 6
    new-instance p2, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$b;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$b;-><init>(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;)V

    invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 7
    new-instance p1, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$c;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$c;-><init>(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;)V

    invoke-virtual {v1, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->c:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a()V

    return-void
.end method


# virtual methods
.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result v0

    return v0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public getItemViewType(I)I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    const/4 v1, 0x1

    if-nez v0, :cond_0

    return v1

    :cond_0
    if-nez p1, :cond_1

    const/4 p1, 0x0

    return p1

    :cond_1
    return v1
.end method

.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 2

    .line 1
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    if-eqz v0, :cond_0

    add-int/lit8 p2, p2, -0x1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V

    return-void

    .line 4
    :cond_1
    iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    iget-object p2, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->d:Lcom/estrongs/android/pop/app/analysis/n;

    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a(Landroid/view/View;Lcom/estrongs/android/pop/app/analysis/n;)V

    return-void
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 2

    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object p1

    return-object p1

    .line 2
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/ui/recycler/FileGroupAdapter;->c:Landroid/content/Context;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0c01c6

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 3
    new-instance p2, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$a;

    invoke-direct {p2, p0, p1}, Lcom/estrongs/android/ui/recycler/FileGroupAdapter$a;-><init>(Lcom/estrongs/android/ui/recycler/FileGroupAdapter;Landroid/view/View;)V

    return-object p2
.end method
